<?php

namespace app\modules\borrowers\models;

use Yii;

/**
 * This is the model class for table "rah_borrower_mortgage".
 *
 * @property integer $mortgageID
 * @property integer $borrowerID
 * @property string $mortgageType
 * @property string $place
 * @property string $properties
 * @property string $mortgageNo
 * @property string $assess
 * @property string $createTime
 * @property string $createUser
 * @property string $updateTime
 * @property string $updateUser
 * @property integer $usedAmt
 */
class BorrowerMortgage extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'rah_borrower_mortgage';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['borrowerID', 'usedAmt'], 'integer'],
            [['assess'], 'number'],
            [['createTime', 'updateTime'], 'safe'],
            [['mortgageType'], 'string', 'max' => 50],
            [['place', 'properties', 'mortgageNo'], 'string', 'max' => 100],
            [['createUser', 'updateUser'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'mortgageID' => 'Mortgage ID',
            'borrowerID' => '借入者',
            'mortgageType' => '抵押类型',
            'place' => '存在位置',
            'properties' => '抵押性质',
            'mortgageNo' => '编号',
            'assess' => '估价',
            'createTime' => 'Create Time',
            'createUser' => 'Create User',
            'updateTime' => 'Update Time',
            'updateUser' => 'Update User',
            'usedAmt' => '已用抵押金额',
        ];
    }
}
